package lab02.test33;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
public class Test33 {
    public static void main(String[] args) {

        List<String> list=new ArrayList<>();
        list.add("asdasd");
        list.add("aaa");
        list.add("scccc");
        list.add("xccc");
        Collections.sort(list);//升序排序
        for (String n:list){
            System.out.println(n);
        }
    }
}
